<form id="create-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">会员套餐名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="" placeholder="请输入会员套餐名称">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">对应会员有效期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-duration" data-rule="required" class="form-control" name="row[duration]" type="number" value="3" placeholder="请输入对应会员有效期，单位月">
            <h6 class="text-muted">单位月</h6>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">原价:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-originalPrice" data-rule="required" class="form-control" name="row[originalPrice]" type="number" value="0" placeholder="请输入会员原始价格，单位元">
            <h6 class="text-muted">单位元</h6>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">现价:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number" value="0" placeholder="请输入会员现在价格，单位元">
            <h6 class="text-muted">单位元</h6>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">会员渠道:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-channel" data-rule="required" class="form-control selectpicker" name="row[channel]">
				<option value="">请选择...</option>
                {foreach name="channels" item="vo"}
                    <option value="{$vo.key}">{$vo.value}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否展示:</label>
        <div class="col-xs-12 col-sm-8">
			<input  id="c-is_show" name="row[is_show]" type="hidden" value="1">
			<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_show"  data-yes="1" data-no="0">
			<i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>
			</a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">可选权益:</label>
        <div class="col-xs-12 col-sm-8">
            {foreach name="benefitsList" item="vo"}
            <div class="checkbox checkbox-info">
                <input type="checkbox" id="benefit-{$vo.id}" name="row[content][]" value="{$vo.id}">
                <label for="benefit-{$vo.id}">{$vo.title}</label>
            </div>
            {/foreach}
            <h6 class="text-muted">请选择会员包含的权益（可多选）</h6>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
